package com.antg.manager;

import com.antg.service.TaskExecutor;
import com.antg.service.TaskGenerator;

import java.util.List;

/**
 * @Description: 任务管理器
 * @Author 子兔Antg
 * @Date 2021/10/31
 **/
public class TaskManager {
    public void run(TaskGenerator taskGenerator,TaskExecutor taskExecutor) throws Exception {
        //生成任务
        List<String> taskList = taskGenerator.generate();
        //执行任务
        taskExecutor.execute(taskList);
    }
}
